package com.wilson.integration.lease.app.service;

import com.wilson.integration.lease.common.entity.ViewAppointment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentDetailVO;
import com.wilson.integration.lease.common.entity.vo.appointment.AppointmentItemVO;

import java.util.List;

/**
* @author wilson
* @description 针对表【view_appointment(预约看房信息表)】的数据库操作Service
* @createDate 2023-07-26 11:12:39
*/
public interface ViewAppointmentService extends IService<ViewAppointment> {

    /**
     * 查询个人预约看房列表
     *
     * @param userId
     * @return
     */
    List<AppointmentItemVO> listItemByUserId(Long userId);

    /**
     * 根据ID查询预约详情信息
     *
     * @param id
     * @return
     */
    AppointmentDetailVO getDetailById(Long id);
}
